package com.cx.base.day25_Rocketmq.order;

import java.util.ArrayList;
import java.util.List;

public class OrderStep {
    private Long orderId;
    private String desc;

    public OrderStep() {
    }

    public OrderStep(Long orderId, String desc) {
        this.orderId = orderId;
        this.desc = desc;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "OrderStep{" +
                "orderId=" + orderId +
                ", desc='" + desc + '\'' +
                '}';
    }

    public static List<OrderStep> buildOrders() {
        List<OrderStep> orderSteps = new ArrayList<>();
        for (long i = 1; i < 5; i++) {
            orderSteps.add(new OrderStep(i, "创建"));
            orderSteps.add(new OrderStep(i, "付款"));
            orderSteps.add(new OrderStep(i, "消费"));
            orderSteps.add(new OrderStep(i, "完成"));
        }
        return orderSteps;
    }
}
